package unit9_9.pojo;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class BRRead {
    public static void main(String[] args) throws IOException {
        char c;
        String str;
//        使用System.in 创建BufferedReader
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        System.out.println("输入“M”级键退出");
//        读取字符
        /*do{
            c=(char)br.read();
            System.out.println(c);
        }while(c!='m');*/

//        读取字符串
        do{
            str=br.readLine();
            System.out.println(str);
        }while(!str.equals("end"));
    }
}
